﻿@model HawaiRestaurant.Models.DataContext.FoodType

@{
    ViewBag.Title = "CreateFoodType";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>CreateFoodType</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>




 @using (Html.BeginForm("CreateFoodType", "Admin", FormMethod.Post, new { @class = "niceform" }))
   {
       @Html.ValidationSummary(true)
       <fieldset>
   
           <dl >
               <dt>
                   <label for="name">Food Type Name:</label>
               </dt>
               <dd>
            
                   @Html.EditorFor(model => model.Name)

                   @Html.ValidationMessageFor(model => model.Name)
               </dd>
           </dl>
                <dl >
               <dt>
                   <label for="name">Description:</label>
               </dt>
               <dd>
            
                   @Html.EditorFor(model => model.Descriptions)

                   @Html.ValidationMessageFor(model => model.Descriptions)
               </dd>
           </dl>
           <dl class="submit" style="margin-left: -50px">
               <dd>
                   <input id="submit" class="NFButton" type="submit" value="Submit" name="submit"> 
               </dd>
           </dl>
       </fieldset>
   }


<div>
    @Html.ActionLink("Back to List", "ListFoodTypes")
</div>
